package com.vhans.db.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.vhans.core.domain.AExceptionLog;
import com.vhans.db.mapper.AExceptionLogMapper;
import com.vhans.db.model.dto.ConditionDTO;
import com.vhans.db.service.IAExceptionLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 异常日志业务接口实现类
 *
 * @author vhans
 */
@Service
public class AExceptionLogServiceImpl extends ServiceImpl<AExceptionLogMapper, AExceptionLog> implements IAExceptionLogService {

    @Autowired
    private AExceptionLogMapper exceptionLogMapper;

    @Override
    public List<AExceptionLog> listExceptionLog(ConditionDTO condition) {
        // 查询异常日志列表
        return exceptionLogMapper.selectExceptionLogList(condition);
    }

    @Override
    public void saveExceptionLog(AExceptionLog exceptionLog) {
        // 保存异常日志
        exceptionLogMapper.insert(exceptionLog);
    }
}




